﻿using System;
using NetMQ;
using NetMQ.Sockets;

namespace ClientDemo2
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            
            using (var  client = new SubscriberSocket())
            {
                  
                client.Connect("tcp://192.168.139.121:8888");
                client.Subscribe("reply_top1");
                while (true)
                {

                    string msg = client.ReceiveFrameString();
                    
                    Console.WriteLine($"recevied msg:{msg}");


                }
                
               
            }

            Console.ReadLine();
        }
    }
}